import express from 'express'

import { prepare } from '../callback_router/prepare_callback_router.js'

import { getData } from '../callback_router/getData_callback_router.js'

import { play } from '../callback_router/play_callback_router.js'

import { stop } from '../callback_router/stop_callback-router.js'

import { record } from '../callback_router/record_callback_router.js'

import { changeTime } from '../callback_router/changeTime_callback_router.js'

import { change_ip } from '../callback_router/modifyIp_callback_router.js'


// 创建路由对象
export let route = express.Router()

// 准备按钮接口
route.get('/prepare',prepare)

// 获取设备返回来的数据
route.get('/getData',getData)

// 播放按钮接口
route.get('/play',play)

// 停止按钮接口
route.get('/stop',stop)

// 录制按钮接口
route.get('/record',record)

// 定义改变时间线的接口
route.get('/changeTime',changeTime)

// 定义改变设备ip的接口
route.get('/modifyIp',change_ip)